<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<#assign memberLoginCheckTag = newTag("memberLoginCheckTag") />
<#assign memberInfo = memberLoginCheckTag() />

<#assign headerTag = newTag("headerTag") />
<#assign header = headerTag() />
<#if title??>
	<title>${title}-${header.title}</title>
<#else>
	<title>${header.title}</title>
</#if>
<meta name="keywords" content="${header.keywords!''}">
<meta name="description" content="${header.description!''}">
<#if site.icofile?exists>
<link href="${site.icofile}" rel="shortcut icon" >
</#if>

<script>
	var ctx="${ctx}";
</script>

<link rel="stylesheet" href="${ctx}/themes/default/css/common.css" type="text/css" />
<link rel="stylesheet" href="${ctx}/themes/default/css/button.css" type="text/css" />
<link rel="stylesheet" href="${ctx}/themes/default/css/dialog.css" type="text/css" />
<link rel="stylesheet" href="${ctx}/themes/default/css/member.css" type="text/css" />
<script src="${ctx}/themes/default/js/jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="${ctx}/themes/default/js/jquery.validate.js" type="text/javascript"></script>
<script src="${ctx}/themes/default/js/jquery.form.3.51.0.js" type="text/javascript"></script>
<script src="${ctx}/themes/default/js/lhgdialog.js" type="text/javascript"></script>
<script src="${ctx}/themes/default/js/jquery.blockUI.js" type="text/javascript"></script>
<script src="${ctx}/themes/default/js/jquery.validate.js" type="text/javascript"></script>
<script src="${ctx}/themes/default/js/Utils.js" type="text/javascript"></script>
<script  src="${ctx}/themes/default/js/shop.js"   ></script>
<script  src="${ctx}/themes/default/js/CartBar.js" ></script>
<script  src="${ctx}/themes/default/js/DropDownMenu.js" ></script>
<script  src="${ctx}/themes/default/js/favorite.js"  ></script>

<script   src="${ctx}/themes/default/js/My97DatePicker/WdatePicker.js" ></script>

<script  >
$(function(){
	$('#nav_menu>ul>li').dropDownMenu({child:'.child'});
	
});
</script>
</head>
<body>
<div id="hreder">
	<div class="login_bar">
		<ul>
			<#if member?? >
				<!-- 获取member信息 -->
				<script type="text/javascript">var isLogin= true;</script>
				<li>您好：${member.name}</li>
				<li><a href="${ctx}/member/member.html">[会员中心]</a></li>
				<li><a href="#" id="logout">[退出]</a></li>
			<#else>
				<script type="text/javascript">var isLogin= false;</script>
				<li><a href="login.html">登录 </a></li>
				<li><a href="register.html">注册 </a></li>
			</#if>
		</ul>	
	</div>	
	<div class="util_bar">
		<ul>
			<!--购物车下拉菜单-->
			<li id="cart_bar_wrapper" class="first">
				<a href="../cart.html">购物车(<span class="num">0</span>)件</a>
				<div class="content" style="display:none" >
					<div class="border"></div>
					<div class="cart_list" >
						<@image class="loading" src='${ctx}/themes/default/images/ajax-loader.gif'/>						
					</div>					
				</div>
			</li>
			<!--购物车下拉菜单结束-->
			<li><a href="../searchorder.html">游客订单查询</a></li>
			<li ><a href="../help-21-7.html">帮助中心</a></li>
			<li class="phone">400-400-4000</li>
		</ul>
	</div>
	<div class="clear"></div>	
</div>
<!--页面logo、信息-->
<div id="banner">
	<!--logo-->
	<div class="logo">
		<@image src="${site.logofile!''}" title="logo"/>
	</div>
	<!--logo结束-->
	<!--承诺、优惠-->
	<div class="promise">
		<@image src="${ctx}/themes/default/images/sycn.jpg" alt="承诺图片"/>
	</div>
	<!--承诺、优惠结束-->
</div>
<!--页面logo、信息结束-->
<!--导航-->
<div id="nav_menu">
	<#include '../common/nav_menu.html'/>
</div>
<!--导航结束-->
<!--搜索-->
<div id="search_bar">
	<#include '../common/search.html' />		 
</div>
<script>
$(function(){
	$("#logout").click(function(){
		$.ajax({
			url:"${ctx}/api/shop/member!logout.do?ajax=yes",
			dataType:"json",
			cache: false,             //清楚缓存，暂时测试，如果产生冲突，请优先考虑是否是这条语句。
			success:function(result){
				if(result.result==1){
					$.alert(result.message);
					location.href="${ctx}/index.html";
				}else{
					$.alert(result.message);
				}	
				$.Loading.hide();
			},
			error:function(){
				$.Loading.hide();
				$.alert("出错了:(");
			}
		});
		return false;
	})	
})
</script>	

	<!--正文-->
<#-- 获得会员信息，如果未登录，跳转到index.html -->	
<#assign memberLoginCheckTag = newTag("memberLoginCheckTag") />
<#assign memberInfo = memberLoginCheckTag() />

<div id="memeber_wrapper">
	<!--会员中心首页左侧-->
	<div id="menu_wrapper">
		<!--会员中心圆形头部-->
		<div class="round_header"></div>
		<!--会员中心圆形头部结束-->
		<h1><a href="member.html">会员中心首页</a></h1>
		<!--会员中心左侧会员缩略图-->
		<div class="breviary">
			<#if member?exists>
				<#if member.face?exists && member.face != ''>
				<img src="<@imgurl pic='${member.face}'/>"  alt="会员头像缩略图" />
				<#else>
				<@image src="${ctx}/themes/default/images/hutx.jpg" alt="会员头像缩略图" />
				</#if>
			<div>
				<h2>${member.name!''}</h2>
				<p>会员等级：${member.lvname!''}</p>
			</div>
		 </#if>
		</div>
		<!--会员中心左侧会员缩略图结束-->
		<!--会员中心左侧列表-->
		<div class="inner_wrapper">
			<#include 'menu.html' />	 
		</div>
		<!--会员中心左侧列表结束-->
		<!--会员中心圆形底部-->
		<div class="round_bottom"></div>
		<!--会员中心圆形底部结束-->
	</div>	
		<!--会员中心首页左侧结束-->
		<!--会员中心首页右侧-->
	<div id="content_wrapper">
		<div class="crew_right">
			<div class="rr_header"></div>
			<div class="conInner">